﻿#region

using SqlSugar;

#endregion

namespace Vin.Extension.Framework.Entities;

public class VinBaseEntity : VinPrimaryEntity
{
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(ColumnDescription = "创建时间", CreateTableFieldSort = 10000, DefaultValue = "now()")]
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(ColumnDescription = "最后更新时间", CreateTableFieldSort = 10001, DefaultValue = "now()")]
    public DateTime? UpdateTime { get; set; }
}


public record VinBaseRecordEntity : VinPrimaryRecordEntity
{
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(ColumnDescription = "创建时间", CreateTableFieldSort = 10000, DefaultValue = "now()")]
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(ColumnDescription = "最后更新时间", CreateTableFieldSort = 10001, DefaultValue = "now()")]
    public DateTime? UpdateTime { get; set; }
}